<?php 
/**
* @Enterprise: S&S Media Solutions
* @author: Yannick Spang
* @creation date: April 2009
* @url: http://www.joomla-virtuemart-designs.com
* @copyright: Copyright (C) 2008 - 2009 S&S Media Solutions
* @license: Commercial, see LICENSE.php
* @product: Flypage Admirable - Virtuemart Theme
* @version: 1.0
*/

if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
mm_showMyFileName(__FILE__);
 ?>
<!--Generate Additional Stuff-->
<?php
global $ps_product, $product_id, $Itemid;

//Generate Vendor Link
$vend_id = $ps_product->get_vendor_id($product_id);
$vend_name = $ps_product->get_vendorname($product_id);
$link = "$mosConfig_live_site/index2.php?page=shop.infopage&amp;vendor_id=$vend_id&amp;output=lite&amp;option=com_virtuemart&amp;Itemid=".$Itemid;
$text = $vend_name;
$text2 = $vend_name;
$vendor_link = vmPopupLink( $link, $text);

//Generate Vendor Manufacturer
$manufacturer_id = $ps_product->get_manufacturer_id($product_id);
$manufacturer_name = $ps_product->get_mf_name($product_id);
$manufacturer_link = "";
if( $manufacturer_id && !empty($manufacturer_name) ) {
	$link = "$mosConfig_live_site/index2.php?page=shop.manufacturer_page&amp;manufacturer_id=$manufacturer_id&amp;output=lite&amp;option=com_virtuemart&amp;Itemid=".$Itemid;
	$text = $manufacturer_name;
	$manufacturer_link .= vmPopupLink( $link, $text );
	// Avoid JavaScript on PDF Output
	if( @$_REQUEST['output'] == "pdf" )
	$manufacturer_link = "<a rel=\"nofollow\" href=\"$link\" target=\"_blank\" title=\"$text\">$text</a>";
}

//Generate AskSeller Link
$any_question = "<a rel=\"nofollow\" href=\"$ask_seller_href\"><img src=\"$mosConfig_live_site/components/com_virtuemart/themes/ilvm_theme/images/flypage_themes/flypage_admirable/askseller_icon.png\" alt=\"Any Question?\" title=\"Any Question?\"></img></a>";
?>